//logs.js
//const util = require('../../utils/util.js')
var app = getApp()
Page({
  data: {
    username: "", 
    headimg:""
  },
  onShow: function (options) {
    this.setData({
      username:app.globalData.userInfo.username,
      headimg: app.globalData.userInfo.avatar
    })
  },
  f1: function (event) {
    wx.switchTab({
      url: '/pages/index/index',
    })
  },
  show: function(){
    wx.showToast({
      title: "创建于2019，Version 2.2.0",
      icon: 'none',
      duration: 1000
    });
  },
  about: function () {
    wx.showToast({
      title: "越努力，越幸运",
      icon: 'none',
      duration: 1000
    });
  },
})
